package helloworld.example.customer.dao;

import helloworld.example.customer.CustomerDetailObject;
import helloworld.example.customer.list.CustomerSummaryObject;

/**
 * 
 * @author Srikanth Shenoy
 * @version $Revision:   $ $Date:   $
 */
public interface CustomerDAO {
	
	public CustomerDetailObject fetchDetail(String emailAddress) throws DAOException;
	public CustomerSummaryObject[] find(String lastName) throws DAOException;
	public int create(CustomerDetailObject customer) throws DAOException,DuplicateCustomerException;
	public int update(CustomerDetailObject customer) throws DAOException,DuplicateCustomerException;
	public void delete(int id) throws DAOException;
}
